<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title py:if="collection">${collection.title}</title>
    <title py:if="not collection">Collections</title>
    <script type="text/javascript">
    //<![CDATA[
    
    //]]>
    </script>
</head>
<body>
<div py:if="collection">
    <h1>${collection.title}</h1>
    <div py:for="p in collection.children">
        <h2><a href="/${p.url}">${p.title}</a></h2>
    </div>
    <div><a href="editpage?cid=${collection.id}">Add child page</a></div>
</div>
<div py:if="not collection" py:for="c in allcollections" class="collection">
    <a href="collections?cid=${c.id}">${c.title}</a>
</div>
</body>
</html>
